#include <bits/stdc++.h>
using namespace std;
int a[110];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int x;
  cin >> x;
  auto ans = find(a, a + n, x);
  if (ans != a + n) {
    cout << "Yes" << endl;
  } else {
    cout << "No";
  }
  return 0;
}